import React from "react"
import { Meta, StoryObj } from "@storybook/react"

import QuestionParagraph from "../../components/QuestionComponents/QuestionParagraph/QuestionParagraph"

const meta: Meta<typeof QuestionParagraph> = {
    title: "Question/QuestionParagraph",
    component: QuestionParagraph
}

export default meta

// 定义 Story 类型
type Story = StoryObj<typeof QuestionParagraph>

// 默认 Story
export const Default: Story = {}

// 设置 props 的 Story
export const SetProps: Story = {
    args: {
        text: "hello",
        isCenter: true
    }
}

// 换行文本的 Story
export const BreakLine: Story = {
    args: {
        text: "hello\nhello\nhello"
    }
}
